package cn.toolck.my.spring;

import cn.toolck.my.spring.annotation.AnnotationParse;
import cn.toolck.my.spring.config.MyConfiguration;
import cn.toolck.my.spring.factory.BeanFactory;
import cn.toolck.my.spring.factory.ProxyFactory;
import cn.toolck.my.spring.service.TransferService;
import cn.toolck.my.spring.utils.ClassPathCandidateComponentScanner;
import cn.toolck.my.spring.utils.FileUtils;
import cn.toolck.my.spring.utils.StringUtils;

import java.io.IOException;
import java.util.Set;

/**
 * @ClassName Mytest
 * @Description TODO
 * @Author Toolck Rin
 * @Date 2021/2/8 17:48
 * @Version 1.0
 **/
public class Mytest {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        BeanFactory beanFactory = new BeanFactory();
        beanFactory.parsingConfig(MyConfiguration.class);
        TransferService transferService = (TransferService) beanFactory.getBean("transferService");
        try {
            transferService.transfer("6029621011001", "6029621011000", 100);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println(transferService);
    }
}
